package com.dpad.telematicsclientapp.netlibrary.newapp.entity;

import com.dpad.telematicsclientapp.mvp.kit.Kits;

import java.io.Serializable;
import java.util.List;



/**
 * ================================================
 * 作    者：booob
 * 版    本：1.0
 * 创建日期：2018-08-23-0023 14:39
 * 描    述：
 * 修订历史：
 * ================================================
 */
public class HomeCarDataBean implements Serializable {
    /**
     * code : 00000
     * message : 成功
     * result : {"vehinfos":[{"vin":"LDCB23662J1750023","plateNumber":"鄂A80023","linePic":"https://ntsp.dpca.com.cn/preprod/appimage/attachment/upload/subCarSysLinePic/201903/0311/596fc9276923485ba6dc24be9dd51604.jpg"}],"maintenanceMileage":"7500.0","maintenanceDay":"182","score":"100","activite":"2020.04.01截止","wifi":"23.3G","ntspAppBanners":[],"address":"上海市徐汇区漕河泾新兴技术开发区创业园","lng":"121.40315","lat":"31.17362","messageInfo":[{"title":"全新标志408热销中","createDate":"2019-03-12 15:25:34.0","realName":null,"content":"全新标志408热销中广告","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"0","messageId":null,"link":null},{"title":"zh123","createDate":"2019-03-11 10:30:56.0","realName":null,"content":"zh123","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"1","messageId":null,"link":null},{"title":"zh123","createDate":"2019-03-11 10:30:56.0","realName":null,"content":"zh123","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"1","messageId":null,"link":null}]}
     * total : null
     */

    private String code;
    private String message;
    private ResultBean result;
    private String total;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public static class ResultBean {
        /**
         * vehinfos : [{"vin":"LDCB23662J1750023","plateNumber":"鄂A80023","linePic":"https://ntsp.dpca.com.cn/preprod/appimage/attachment/upload/subCarSysLinePic/201903/0311/596fc9276923485ba6dc24be9dd51604.jpg"}]
         * maintenanceMileage : 7500.0
         * maintenanceDay : 182
         * score : 100
         * activite : 2020.04.01截止
         * wifi : 23.3G
         * ntspAppBanners : []
         * address : 上海市徐汇区漕河泾新兴技术开发区创业园
         * lng : 121.40315
         * lat : 31.17362
         * messageInfo : [{"title":"全新标志408热销中","createDate":"2019-03-12 15:25:34.0","realName":null,"content":"全新标志408热销中广告","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"0","messageId":null,"link":null},{"title":"zh123","createDate":"2019-03-11 10:30:56.0","realName":null,"content":"zh123","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"1","messageId":null,"link":null},{"title":"zh123","createDate":"2019-03-11 10:30:56.0","realName":null,"content":"zh123","imgId":null,"type":"0","contentType":null,"firstName":null,"sex":null,"readState":"1","messageId":null,"link":null}]
         */

        private String maintenanceMileage;
        private String maintenanceDay;
        private String rcIsAbled;//判断是否显示远控的入口
        private String score;
        private String activite;
        private String wifi;
        private String address;
        private String lng;
        private String lat;
        private String advise;
        private List<VehinfosBean> vehinfos;
        private List<?> ntspAppBanners;
        private List<MessageInfoBean> messageInfo;
        private String rcServiceAble;//0：不可用1：可用 2：未激活；3：已到期

        public String getRcServiceAble() {
            return rcServiceAble;
        }

        public void setRcServiceAble(String rcServiceAble) {
            this.rcServiceAble = rcServiceAble;
        }

        private String fuelOfLeft;//剩余油耗单位百分比%

        private String totalMileage;//总里程km

        private String totalScore;


        public String getAdvise() {
            return advise;
        }

        public void setAdvise(String advise) {
            this.advise = advise;
        }

        public String getFuelOfLeft() {
            return fuelOfLeft;
        }

        public void setFuelOfLeft(String fuelOfLeft) {
            this.fuelOfLeft = fuelOfLeft;
        }

        public String getTotalMileage() {
            return totalMileage;
        }

        public void setTotalMileage(String totalMileage) {
            this.totalMileage = totalMileage;
        }

        public String getTotalScore() {
            return totalScore;
        }

        public void setTotalScore(String totalScore) {
            this.totalScore = totalScore;
        }

        public String getRcIsAbled() {
            return rcIsAbled;
        }

        public void setRcIsAbled(String rcIsAbled) {
            this.rcIsAbled = rcIsAbled;
        }

        public String getMaintenanceMileage() {
            return maintenanceMileage;
        }

        public void setMaintenanceMileage(String maintenanceMileage) {
            this.maintenanceMileage = maintenanceMileage;
        }

        public String getMaintenanceDay() {
            return maintenanceDay;
        }

        public void setMaintenanceDay(String maintenanceDay) {
            this.maintenanceDay = maintenanceDay;
        }

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }

        public String getActivite() {
            return activite;
        }

        public void setActivite(String activite) {
            this.activite = activite;
        }

        public String getWifi() {
            return wifi;
        }

        public void setWifi(String wifi) {
            this.wifi = wifi;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getLng() {
            return lng;
        }

        public void setLng(String lng) {
            this.lng = lng;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public List<VehinfosBean> getVehinfos() {
            return vehinfos;
        }

        public void setVehinfos(List<VehinfosBean> vehinfos) {
            this.vehinfos = vehinfos;
        }

        public List<?> getNtspAppBanners() {
            return ntspAppBanners;
        }

        public void setNtspAppBanners(List<?> ntspAppBanners) {
            this.ntspAppBanners = ntspAppBanners;
        }

        public List<MessageInfoBean> getMessageInfo() {
            return messageInfo;
        }

        public void setMessageInfo(List<MessageInfoBean> messageInfo) {
            this.messageInfo = messageInfo;
        }

        public static class VehinfosBean {
            /**
             * vin : LDCB23662J1750023
             * plateNumber : 鄂A80023
             * linePic : https://ntsp.dpca.com.cn/preprod/appimage/attachment/upload/subCarSysLinePic/201903/0311/596fc9276923485ba6dc24be9dd51604.jpg
             */

            private String vin;
            private String plateNumber;
            private String linePic;
            private String userVehType;
            private String tState;
            private String saleSubmodelId;

            public String getSaleSubmodelId() {
                return saleSubmodelId;
            }

            public void setSaleSubmodelId(String saleSubmodelId) {
                this.saleSubmodelId = saleSubmodelId;
            }

            public String gettState() {
                return tState;
            }

            public void settState(String tState) {
                this.tState = tState;
            }

            public String getUserVehType() {
                return userVehType;
            }

            public void setUserVehType(String userVehType) {
                this.userVehType = userVehType;
            }

            private boolean isChecked = false;

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            public String getVin() {
                return vin;
            }

            public void setVin(String vin) {
                this.vin = vin;
            }

            public String getPlateNumber() {
                return plateNumber;
            }

            public void setPlateNumber(String plateNumber) {
                this.plateNumber = plateNumber;
            }

            public String getLinePic() {
                return linePic;
            }

            public void setLinePic(String linePic) {
                this.linePic = linePic;
            }
        }

        public static class MessageInfoBean {
            /**
             * title : 全新标志408热销中
             * createDate : 2019-03-12 15:25:34.0
             * realName : null
             * content : 全新标志408热销中广告
             * imgId : null
             * type : 0
             * contentType : null
             * firstName : null
             * sex : null
             * readState : 0
             * messageId : null
             * link : null
             */

            private String title;
            private String createDate;
            private String realName;
            private String content;
            private String imgId;
            private String type;
            private String contentType;
            private String firstName;
            private String sex;
            private String readState;
            private String messageId;
            private String link;
            private String tid;


            private String isDefault;

            public boolean getIsDefault() {
                return !Kits.Empty.check(isDefault) && "1".equals(isDefault);
            }

            public void setIsDefault(String isDefault) {
                this.isDefault = isDefault;
            }


            public String getTid() {
                return tid;
            }

            public void setTid(String tid) {
                this.tid = tid;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getCreateDate() {
                return createDate;
            }

            public void setCreateDate(String createDate) {
                this.createDate = createDate;
            }

            public String getRealName() {
                return realName;
            }

            public void setRealName(String realName) {
                this.realName = realName;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getImgId() {
                return imgId;
            }

            public void setImgId(String imgId) {
                this.imgId = imgId;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getContentType() {
                return contentType;
            }

            public void setContentType(String contentType) {
                this.contentType = contentType;
            }

            public String getFirstName() {
                return firstName;
            }

            public void setFirstName(String firstName) {
                this.firstName = firstName;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getReadState() {
                return readState;
            }

            public void setReadState(String readState) {
                this.readState = readState;
            }

            public String getMessageId() {
                return messageId;
            }

            public void setMessageId(String messageId) {
                this.messageId = messageId;
            }

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }
        }
    }
}
